package com.infoDiffusion.bean;
//地震信息
import java.text.DecimalFormat;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "earthquake")
public class EarthquakeBean {
	private Integer id;
	private Double power;//震级
	private Date ocurrtTime;//发生时间
	private String latitude;	//纬度
	private String longitude;	//经度
	private String depth;	//深度
	private String referPosition;	//参考位置
	private Date createDate;
	private UserBean userBean;
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name="power")
	public Double getPower() {
		return power;
	}
	public void setPower(Double power) {
		this.power = power;
	}
	@Column(name="ocurrt_time")
	public Date getOcurrtTime() {
		return ocurrtTime;
	}
	
	public void setOcurrtTime(Date ocurrtTime) {
		this.ocurrtTime = ocurrtTime;
	}
	@Column(name="latitude")
	public String getLatitude() {
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	@Column(name="longitude")
	public String getLongitude() {
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	@Column(name="depth")
	public String getDepth() {
		return depth;
	}
	public void setDepth(String depth) {
		this.depth = depth;
	}
	@Column(name="refer_position")
	public String getReferPosition() {
		return referPosition;
	}
	public void setReferPosition(String referPosition) {
		this.referPosition = referPosition;
	}
	@Column(name="create_date")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	@ManyToOne
	@JoinColumn(name="user_id")
	public UserBean getUserBean() {
		return userBean;
	}
	
	public void setUserBean(UserBean userBean) {
		this.userBean = userBean;
	}
	
	
	
	
}
